# -*- conding:utf-8 -*-

"""
@author: PoXiao
@file: creat_roadMap.py
@time: 2019/3/22 0022 22:23

"""
import numpy as np

def creat_roadMap(Road,crossMap):
    addColumn = np.zeros((Road.shape[0],4))
    d = np.c_[Road, addColumn]
    for i, j in zip(range(Road[0, 0], Road[Road.shape[0] - 1, 0] + 1), range(0, Road.shape[0])):
        d[j, 7:9] = np.where(crossMap == i)[1]+1
        d[j, 9:11] = np.where(crossMap == i)[0]+1

    Road = d
    return Road
